<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>订单融资</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :inline="true" :form="form">
      <el-form-item>
        <el-button type="danger">批量删除</el-button>
      </el-form-item>
      <el-form-item>
        <el-input v-model="form.serachKey" placeholder="请输入内容" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSerach">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="tableData" stripe border height="calc(100vh - 140px)" @selection-change="handleSelectionChange"
      style="width: 100%">
      <el-table-column type="selection" width="40"></el-table-column>
      <el-table-column label="序号" width="35" type="index"></el-table-column>
      <!-- <el-table-column prop="Order_Financing_SerialNumber" label="申请流水号"></el-table-column> -->
      <el-table-column prop="Order_Financing_Name" label="申请人姓名"></el-table-column>
      <el-table-column prop="Order_Financing_Phone" label="联系电话"></el-table-column>
      <el-table-column prop="Application_Date" label="提交时间"></el-table-column>
      <el-table-column prop="Group_Purchasing_SerialNumber" label="寄售交易单号"></el-table-column>
      <el-table-column prop="Group_Purchasing_Name" label="求购商品"></el-table-column>
      <el-table-column prop="Unit_Price" label="单价">
        <template v-slot="{row}">
          {{row.Unit_Price}}/{{row.Article_Unit_SerialNumber}}
        </template>
      </el-table-column>
      <el-table-column prop="Order_Financing_Quantity" label="求购数量">
        <template v-slot="{row}">
          {{row.Order_Financing_Quantity}}{{row.Article_Unit_SerialNumber}}
        </template>
      </el-table-column>
      <el-table-column prop="Order_Financing_Amount" label="总金额"></el-table-column>
      <el-table-column prop="Repayment_Date" label="还款期限">
        <template v-slot="{row}">
          {{row.Repayment_Date}}天
        </template>
      </el-table-column>
      <el-table-column prop="Enterprise_Name" label="企业名称"></el-table-column>
      <el-table-column prop="Order_Financing_Notes" label="备注"></el-table-column>
      <el-table-column label="操作" width="150">
        <template v-slot="{row}">
          <el-button type="primary" size="small" @click="editMember(row)">通过</el-button>
          <el-button type="danger" size="small" @click="deletMember(row.Order_Financing_SerialNumber)">驳回</el-button>
        </template>
      </el-table-column>
    </el-table>

    <el-pagination background v-show="total > 0" @size-change="handleSizeChange" @current-change="handleCurrentChange"
      :current-page="form.page" :page-sizes="[10, 20, 30, 50]" :page-size="form.limit"
      layout="total, sizes, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="./js/Orderfinancing.js"></script>
</body>

</html>